﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace IdentityWebApi.MySql
{
    public partial class addJwtVersion : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "T_User",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 4, 13, 22, 45, 5, 677, DateTimeKind.Local).AddTicks(4887),
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 4, 13, 21, 36, 14, 878, DateTimeKind.Local).AddTicks(2510));

            migrationBuilder.AddColumn<long>(
                name: "JwtVersion",
                table: "T_User",
                type: "bigint",
                nullable: false,
                defaultValue: 0L);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "JwtVersion",
                table: "T_User");

            migrationBuilder.AlterColumn<DateTime>(
                name: "CreateTime",
                table: "T_User",
                type: "datetime(6)",
                nullable: false,
                defaultValue: new DateTime(2025, 4, 13, 21, 36, 14, 878, DateTimeKind.Local).AddTicks(2510),
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldDefaultValue: new DateTime(2025, 4, 13, 22, 45, 5, 677, DateTimeKind.Local).AddTicks(4887));
        }
    }
}
